<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
//    var array1 = [1,2,3];
//    var array2 = [];
//    console.log(typeof array1);
//    console.log(array1);

    var arr1 = new Array();
    var arr2 = new Array("关羽","张飞","刘备");
    var arr3 = new Array(1,2,3);
    var arr3 = new Array(3);
    arr1[0] =3;
    console.log(arr1);
    console.log(arr2);
    console.log(arr3);
</script>
</body>
</html>